package org.apache.catalina.util;
import java.io.InputStream;
import java.util.Properties;

public class ServerInfo {

    private static String serverInfo = null;

    static {
        try {
            InputStream is = ServerInfo.class.getResourceAsStream
                ("/org/apache/catalina/util/ServerInfo.properties");
            Properties props = new Properties();
            props.load(is);
            is.close();
            serverInfo = props.getProperty("server.info");
        } catch (Throwable t) {
            ;
        }
        if (serverInfo == null)
            serverInfo = "Apache Tomcat";
    }

    public static String getServerInfo() {
        return (serverInfo);
    }
}
